package com.ycy.service.bank;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ycy.dao.BankDao;
import com.ycy.pojo.Bank;

@Service
public class BankServiceImpl implements BankService{
	@Autowired
	BankDao bankDao;
	public List<Bank> findall() {
		return bankDao.findall();
	}

	
	public int del(int id) {
		return bankDao.del(id);
	}

	
	public int add(Bank bank) {
		return bankDao.add(bank);
	}

	
	public Bank findByName(String name) {
		return bankDao.findIt(name);
	}

	
	public int edit(Bank bank) {
		return bankDao.edit(bank);
	}

}
